﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 一个线程等待队列中的多个任务通知
{
    class Program
    {
        static void Main(string[] args)
        {
            using (ProducerConsumerQueue q = new ProducerConsumerQueue())
            {
                q.EnqueueTask("hello");
                for (int i = 0; i < 3; i++)
                {
                    q.EnqueueTask("报数" + i);
                }
                q.EnqueueTask("world");
            }



        }
    }
}
